package cn.edu.ctbu.mybatis02.service;

import cn.edu.ctbu.mybatis02.core.CommonSaveParam;
import cn.edu.ctbu.mybatis02.dao.ReadTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ReadTableService {

    @Autowired
    private ReadTable readTable;

    public List<Map<String, Object>> listByTableName(String tableName){

        return readTable.listByTableName(tableName);
    }

    public void SaveByTable(CommonSaveParam commonSaveParam){

        readTable.SaveByTable(commonSaveParam);
    }
}
